<?php
$seksere=0;
$femmere=0;
$firere=0;
$treere=0;
$toere=0;
$ettere=0;
for($antal=1;$antal<=100;$antal++) {
echo $antal;
$terning= rand(1,100);
echo $terning;
echo "<br>";
if ($terning==6){
$seksere++;	
}
if ($terning==5){
$femmere++;	
}
if ($terning==4){
$firere++;	
}
if ($terning==3) {
$treere++;
}
if ($terning==2){
$toere++;	
}
if ($terning==1){
$ettere++;	
}

}
echo "<table border=1>";
echo "<tr>";
echo "<th>Terning eyes</th>";
echo "<th>Antal kast</th>";
echo "$seksere -Antal kast: ";
echo "$femmere -Antal kast: ";
echo "$firere -Antal kast: ";
echo "$treere -Antal kast: ";
echo "$toere -Antal kast: ";
echo "$ettere -Antal kast: ";
?>